Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <form action="http://www.w3schools.com/html/action_page.php"> Username: <input type="text" name="usrname" required> <input type="submit"> </form> <p><strong>Note:</strong> The required attribute of the input tag is not supported in Internet Explorer 9 and earlier versions, or in Safari.</p> </body> <!-- Mirrored from www.w3schools.com/html/tryit.asp?filename=tryhtml5_input_required by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:20:44 GMT --> </html>
Result:
Try it Yourself - © w3schools.com